import miniToGameSdk from './src/miniToGameSdk';

const app = new miniToGameSdk()

function init(params, cb) {
    app.init(params, cb)
}

function send(api, params, cb) {
    app.printDebug('调用send', api, params)
    app.send(api, params, cb)
}

function login(params, cb) {
    app.printDebug('调用login', params)
    app.login(params, cb)
}

function onShow(params, cb) {
    app.printDebug('监听到onshow', params)
    app.initOnShow(params)
    app.addLog(1001, 'onshow', {})
}

function getStartInfo(params, cb) {
    app.printDebug('调用getStartInfo', params)
    app.getStartInfo(params, cb)
}

function addLog(event_id, event_name, params) {
    app.addLog(event_id, event_name, params)
}

export default {
    init,
    login,
    onShow,
    getStartInfo,
    addLog,
    send,
}
